#include "worker_thread.h"

network::worker_thread::worker_thread()
: _fun(boost::bind(&network::worker_thread::run, this))
{
}

network::worker_thread::~worker_thread()
{
	_thread.reset();
}

void network::worker_thread::start_thread()
{
	_thread.reset(new boost::thread(_fun));
}
